import java.io.Serializable;

/**
 * Any landmark that the wagon will automatically stop at. May or may not have
 * a store.
 */
public class Landmark implements Serializable
{
	private String name;
	private boolean hasStore;
	private int distToNextLandmark;
	private int map_x_coord;
	private int map_y_coord;

	/**
	 * Creates a landmark.
	 * 
	 * @param name Name of the landmark
	 * @param hasStore Boolean value of whether or not the landmark has a store
	 */
	public Landmark(String name, boolean hasStore, int distToNextLandmark, int map_x_coord, int map_y_coord)
	{
		this.name = name;
		this.hasStore = hasStore;
		this.distToNextLandmark = distToNextLandmark;
		this.map_x_coord = map_x_coord;
		this.map_y_coord = map_y_coord;

	}

	/**
	 * Accessor for the hasStore field.
	 * @return boolean value of whether or not there is a store at this landmark
	 */
	public boolean hasStore() 
	{
		return hasStore;
	}
	
	
	
	public String getName()
	{
		return name;
	}
	
	public int getDistBetweenLandmarks()
	{
		return distToNextLandmark;
	}
	
	public int getX()
	{
		return map_x_coord;
	}
	
	public int getY()
	{
		return map_y_coord;
	}
}
